<?php

abstract class caApp
{
	const CONFIG		= 'config.ini';
	/**
	* Config array - it comes from the ini
	*
	* @var array
	*/
	protected $cfg		= NULL;
	/**
	* oAuth object
	*
	* @var object
	*/
	protected $oauth	= NULL;
	/**
	* sTwitterAuth object
	*
	* @var object
	*/
	protected $sessionDTO	= NULL;

	public function __construct($dir)
	{
		$this->cfg = parse_ini_file("{$dir}/" . self::CONFIG, TRUE);
	}

	public function getCfg()
	{
		return $this->cfg;
	}

	public function getOAuth()
	{
		return $this->oauth;
	}

	public function getSession()
	{
		return $this->sessionDTO;
	}
}

# EOF
